﻿<div class="page-heading">
		<h1>Thêm đối tác mới</h1>
</div>
<div class="page-content">
    <div class="msg-box hidden" id="msg-partneradd">
        <span class="msg">Thêm đối tác mới thành công.</span>
    </div>
    <div class="error-box hidden" id="err-partneradd">
        
    </div>
    <form method="post" enctype="multipart/form-data">
        <input type="hidden" name="submit" value="true" />
        
        <div class="admin-row">
            <div class="left"><label>Tên đối tác</label></div>
            <div class="right"><input class="input" name="Name" type="text" /></div>
        </div>
        <div class="admin-row">
            <div class="left"><label>Logo</label></div>
            <div class="right">
                <input class="input" name="Logo" type="file" />
            </div>
        </div>
        <div class="admin-row">
            <div class="left"><label>Địa chỉ website</label></div>
            <div class="right"><input class="input" name="Link" type="text" /></div>
        </div>
        <div class="admin-row">
            <div class="left"><label>Detail</label></div>
            <div class="right"><textarea id="Detail" name="Detail">{Detail}</textarea></div>
        </div>
        <div class="admin-row">
            <div class="left"><label>Chi tiết</label></div>
            <div class="right"><textarea id="ViDetail" name="ViDetail">{ViDetail}</textarea></div>
        </div>
        <div class="admin-row">
            <div class="left"><label>Loại đối tác</label></div>
            <div class="right">
                <select name="catId">
                    <fly:list data="viewcat">
                        <option value="{viewcat.id}">{viewcat.viName}</option>
                    </fly:list>
                </select>
            </div>
        </div>
        <div class="admin-row">
            <div class="left">&nbsp;</div>
            <div class="right">
                <input class="button" type="submit" value="Lưu lại" />
                <a class="button" onclick="location='{BaseUrl}/admin/partners'" >Hủy bỏ</a>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        $('#ViDetail').cleditor({ width: "100%", height: "300px", docCSSFile: "{ResourceUrl}/css/editor.css" });
        $('#Detail').cleditor({ width: "100%", height: "300px", docCSSFile: "{ResourceUrl}/css/editor.css" });
    });
</script>
